home *** CD-ROM | disk | FTP | other *** search
Text File | 1988-03-05 | 1.7 KB | 37 lines | [TEXT/TPAS] |
- WRITING XCMD'S AND XFCN'S IN TURBO
-
- This archive includes:
- READ ME FIRST!!!: Instructions on using Turbo Pascal to make XCMD's
- DHDR's: File containing the PasXCMD and PasXFCN DHDR's
- ResEdit walkthru: How to use ResEdit to move resources.
- HyperXCMD.p: Source code for HyperXCMD unit
- XCMDGlue.inc: Glue routines between Pascal and Hypercard.
- Filename.p,Flash.p,GetCreator.p,Peek.p,Mildate.p:
- Source code for sample XCMD's and XFCN's
- Tpascal xcmd template,Tpascal xfcn template: Templates for making
- XCMD's and XFCN's in Turbo.
-
- How to Use Turbo Pascal to Make XCMD's
-
- 1) Turbo Pascal uses resources called DHDR's to tell it how to compile
- various types of programs that aren't applications. A common example
- is Desk Accessories. In order to use a DHDR, it must first have been
- moved into the Turbo application. If you know how to use ResEdit, copy
- the DHDR's called PasXFCN and PasXCMD from the file DHDR's to the Turbo
- application. Make sure that there are no DHDR's with duplicate ID's already
- in Turbo, or you'll overwrite them. If you don't know how to use ResEdit,
- see the file ResEdit walkthru.
-
- 2) Compile the file HyperXCMD.p. This will compile to a unit called
- HyperXCMD. Use UnitMover to move HyperXCMD into the Turbo file.
-
- 3) See the file XCMD.How to Use for instruction on the format of XCMD's.
- Also see the examples and templates included in this archive.
-
- 4) ONCE THE XCMD OR XFCN HAS BEEN COMPILED, YOU MUST CHANGE THE
- RESOURCE ID. XCMD'S ALWAYS FORM RESOURCE ID 300, AND THUS WILL
- OVERWRITE EACH OTHER UNLESS THE ID IS CHANGED.
-
- 5) Copy the XCMD to the appropriate stack, or to Hypercard.
-
-